/*
 * See: https://nodejs.org/dist/latest-v6.x/docs/api/errors.html
 */
'use strict';

try {
	const a = b;
} catch (e) {
	console.error(`${e}`);
}

try {
	require('net').connect(-1);
} catch (e) {
	console.error(`${e}`);
}

const assert = require('assert');
try {
  doesNotExist;
} catch(e) {
	console.error(`${e}`);
}

try {
	require('vm').runInThisContext('binary ! isNotOk');
} catch(e) {
	console.error(`${e}`);
}

try {
	require('url').parse(() => { });
} catch(e) {
	console.error(`${e}`);
}